package com.example.medicalzb.mapper;

import com.example.medicalzb.entity.DrugEntity;
import com.example.medicalzb.model.DrugModel;
import com.example.medicalzb.param.DrugParam;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DrugMapper {
    List<DrugModel> getAllDrug(String name);

    int saveDrug(DrugEntity drugEntity);


    int insertSalePlace(Long drugId, Long[] saleIds);

    void deleteSaleByDrugId(Long drugId);

    int updateDrug(DrugEntity drugEntity);

    int deleteDrugById(Long id);
}
